import request from '@/utils/request'

// 查询机构分类可用角色列表
export function listOrgKindRoles(query) {
  return request({
    url: '/college/orgKindRoles/list',
    method: 'get',
    params: query
  })
}

// 查询机构分类可用角色详细
export function getOrgKindRoles(orgKindRelRolesId) {
  return request({
    url: '/college/orgKindRoles/' + orgKindRelRolesId,
    method: 'get'
  })
}

// 新增机构分类可用角色
export function addOrgKindRoles(data) {
  return request({
    url: '/college/orgKindRoles',
    method: 'post',
    data: data
  })
}

// 修改机构分类可用角色
export function updateOrgKindRoles(data) {
  return request({
    url: '/college/orgKindRoles',
    method: 'put',
    data: data
  })
}

// 删除机构分类可用角色
export function delOrgKindRoles(orgKindRelRolesId) {
  return request({
    url: '/college/orgKindRoles/' + orgKindRelRolesId,
    method: 'delete'
  })
}

// 导出机构分类可用角色
export function exportOrgKindRoles(query) {
  return request({
    url: '/college/orgKindRoles/export',
    method: 'get',
    params: query
  })
}